﻿using CleanArchitecture.Infrastructure.Entities;
using System;
using System.ComponentModel;

namespace CleanArchitecture.Infrastructure.Models.Business.Advertises
{
    public partial class AdvertiseBannerModel : BaseEntityModel
    {
        [DisplayName("栏位名称")]
        public string AdvBannerName { get; set; }

        [DisplayName("展示位置")]
        public EntityEnumConfig.AdertiseDisplay AdvBannerDisplayType { get; set; }
        
        [DisplayName("广告类型")]
        public EntityEnumConfig.AdertiseType AdvBannerType { get; set; }
        
        [DisplayName("广告位宽度(像素)")]
        public int AdvBannerWidth { get; set; }
       
        [DisplayName("广告位高度(像素)")]
        public int AdvBannerHeight { get; set; }

        [DisplayName("广告位说明")]
        public string AdvBannerDescription { get; set; }
        [DisplayName("排序")]
        public int DisplayOrder { get; set; }
        [DisplayName("广告投放开始时间")]
        public DateTime? StartTime { get; set; }
        [DisplayName("广告投放结束时间")]
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 配合 Vue-grid-layout展示栅格图片(不规则矩阵图)
        /// https://github.com/jbaysolutions/vue-grid-layout/blob/master/README-zh_CN.md
        /// </summary>
        public string ItemsJson { get; set; }
    }
}
